<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="css/eui.css">
</head>
<body>
<div id="app">
    <el-button :plain="true" @click="open2">成功</el-button>
    <el-button :plain="true" @click="open3">警告</el-button>
    <el-button :plain="true" @click="open1">消息</el-button>
    <el-button :plain="true" @click="open4">错误</el-button>
    <el-button :plain="true" @click="open5">成功提示</el-button>
    <el-button :plain="true" @click="open6">错误提示</el-button>
</div>
</body>
<!-- import Vue before Element  引入vue框架文件 vue要在前面-->
<script src="js/vue.js"></script>
<!-- import JavaScript element-ui框架文件 -->
<script src="js/eui.js"></script>
<script>
  let v = new Vue({
    el: '#app',
    data: function() {
      return {
      }
    },
    methods: {
      open1() {
        this.$message('这是一条消息提示');
      },
      open2() {
        this.$message({
          message: '恭喜你，这是一条成功消息',
          type: 'success'
        });
      },
      open3() {
        this.$message({
          message: '警告哦，这是一条警告消息',
          type: 'warning'
        });
      },
      open4() {
        this.$message.error('错了哦，这是一条错误消息');
      },
      open5(){
        this.$message.success("成功了")
      },
      open6(){
        this.$message.error('错了哦，这是一条错误消息');
      }
    }
  })
</script>
</html>